	$(function() {
		$( "#dialog:ui-dialog" ).dialog( "destroy" );
	
		
		$( "#login-form" ).dialog({
			autoOpen: false,
			height: 300,
			width: 350,
			modal: true,
			buttons: {
				
				
			},
			close: function() {
				allFields.val( "" ).removeClass( "ui-state-error" );
			}
			
		});
		

		$( "#login" )
			.click(function() {
				$( "#login-form" ).dialog( "open" );
			});
			$( "#login-form" ).dialog({ height: 220, width: 200 });
	});